package com.ruoyi.ai.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录业务对象 wx_chat
 *
 * @author ruoyi
 * @date 2024-04-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxChatBo extends BaseEntity {

    /**
     * 聊天id
     */
    @NotNull(message = "聊天id不能为空", groups = { EditGroup.class })
    private Long chatId;

    /**
     * 微信用户id
     */
    @NotNull(message = "微信用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wxUserId;

    /**
     * 对话id
     */
    @NotNull(message = "对话id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dialogueId;

    /**
     * 角色
     */
    @NotBlank(message = "角色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String role;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 排序字段
     */
    private Integer sort;

    /**
     * 用户来源
     * @see com.ruoyi.common.enums.UserType
     */
    private String userType;

}
